<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*,
com.brother.model.*,com.ibatis.common.util.*,org.apache.commons.lang.*,com.brother.service.*,
com.brother.realtime.config.*,com.brother.realtime.cache.*,com.brother.realtime.*"   pageEncoding="UTF-8"%><%
 //  send command to the tracker

com.brother.model.Customer user = (com.brother.model.Customer)session.getAttribute(com.brother.Constants.LOGIN_SESSTION_NAME);
if(user == null)
	return;
String trackerName = request.getParameter("trackerName");
TrackerService tks = new TrackerService();

Tracker tracker = tks.getTrackerByFieldName("trackerName", trackerName);

ReqTrackerVersion cfg = new ReqTrackerVersion();
System.out.println("trackerId :" + tracker.getTrackerid() +"  " +ProcessorPool.getInstance().getProcessorByTrackerId(tracker.getTrackerid()));
if(ProcessorPool.getInstance().getProcessorByTrackerId(tracker.getTrackerid()) != null){
	ProcessorPool.getInstance().getProcessorByTrackerId(tracker.getTrackerid()).addConfig(cfg);
}

ActionData adata = new ActionData();
adata.setTrackerId(tracker.getTrackerid());
adata.setAction("reqTrackerVersion");

ParametersSetCache.getInstance().addAction(adata);

com.brother.database.DataBase.closeThreadConnection();
out.print(tracker.getTrackerid());
%>